﻿package net.wangit.view.enumeration;

import net.wangit.MapList;
import net.wangit.framework.cache.Cache;
import net.wangit.framework.util.CacheUtil;

public class EnumerationCache {

	public EnumerationCache() {
	}

	public static MapList get(String domain, String eid) {
		return (MapList) getCache(domain).get(eid);
	}

	public static void put(String domain, String eid, MapList enumeration) {
		getCache(domain).put(eid, enumeration);
	}

	public static void clear(String domain, String eid) {
		getCache(domain).clear(eid);
	}

	public static void clearAll(String domain) {
		getCache(domain).clearAll();
	}

	private static Cache getCache(String domain) {
		return CacheUtil.getEnumerationCache(domain);
	}
}
